home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10485 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  707 b 

  1. Path: unixg.ubc.ca!news
  2. From: gordonw@unixg.ubc.ca (Gordon Wong)
  3. Newsgroups: comp.lang.c
  4. Subject: HELP. How to convert '0x12' into FF char?
  5. Date: Mon, 18 Mar 1996 05:40:13 GMT
  6. Organization: The University of British Columbia
  7. Message-ID: <4iissm$s76@nntp.ucs.ubc.ca>
  8. NNTP-Posting-Host: port38.annex2.net.ubc.ca
  9. X-Newsreader: Forte Free Agent 1.0.81
  10.  
  11. Let's say we have d='1' and e='2' and the following code segment:
  12. :
  13. :
  14. f='0x';
  15. strcpy(f,d);
  16. strcpy(f,e);
  17.  
  18. f now contains the string '0x12' right?
  19. How would I write that out as a single ASCII FF character?
  20. (d,e,f are char)
  21.  
  22. Please reply here and email also if poss.  Thanks for any ideas.
  23.  
  24. Gordon Wong, gordonw@unixg.ubc.ca
  25.  
  26. Gordon Wong, gordonw@unixg.ubc.ca
  27.  
  28.